from django.conf.urls import url,include
from django.urls import path,re_path

from . import views, session_views

urlpatterns = [
    url(r'^$', views.hello),
    path('childrenHello/', views.childrenHello),
    path('articles/<int:year>/<int:month>/', views.requestParamData),#两个参数
    path('articles/data<int:year>/', views.requestParamData),#一个参数 另一个默认惨呼
    path('articles/<int:year>/', views.requestParamDataOne,name='news-year-archive'),#一个参数
    path('redirectYear/', views.redirect_to_year),
    path('redirectIndex/', views.index),
    path('login/', views.login),
    path('register/', views.register),
    path('index/', views.index),
    path('logout/', views.logout),
    path('order/', views.order),

    path('session_login/', session_views.login),
    path('s_index/', session_views.s_index),
    path('s_logout/', session_views.s_logout),
    path('add_emp/', views.add_emp)
]